import { RouterProvider } from 'react-router-dom';
import { NavLink, Outlet } from 'react-router-dom';
import { Button } from 'antd';

function App() {
  return (
    <div className='main-wrap'>
      <div className='nav-box'>
        <Button type="primary">
          <NavLink to='/home'>首页</NavLink>
        </Button>
        <Button type="primary">
          <NavLink to='/about'>ReactQuery</NavLink>
        </Button>
      </div>
      <div className='stage-box'>
        <Outlet />
      </div>
    </div>
  );
}

export default App
